/*
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

#ifndef GifSample_eventfd_H
#define GifSample_eventfd_H

#endif //GifSample_eventfd_H

#pragma once


#include <sys/cdefs.h>
 #include <fcntl.h>
#ifdef __cplusplus
extern "C"{
#endif
#define EFD_CLOEXEC O_CLOEXEC
 #define EFD_NONBLOCK O_NONBLOCK

int eventfd(unsigned int __initial_value, int __flags);

typedef uint64_t eventfd_t;

int eventfd_read(int __fd, eventfd_t* __value);

int eventfd_write(int __fd, eventfd_t __value);

#ifdef __cplusplus
}
#endif